Integrand size = 14, antiderivative size = 179 \[ \int (c+d x)^3 \text {sech}(a+b x) \, dx=\frac {2 (c+d x)^3 \arctan \left (e^{a+b x}\right )}{b}-\frac {3 i d (c+d x)^2 \operatorname {PolyLog}\left (2,-i e^{a+b x}\right )}{b^2}+\frac {3 i d (c+d x)^2 \operatorname {PolyLog}\left (2,i e^{a+b x}\right )}{b^2}+\frac {6 i d^2 (c+d x) \operatorname {PolyLog}\left (3,-i e^{a+b x}\right )}{b^3}-\frac {6 i d^2 (c+d x) \operatorname {PolyLog}\left (3,i e^{a+b x}\right )}{b^3}-\frac {6 i d^3 \operatorname {PolyLog}\left (4,-i e^{a+b x}\right )}{b^4}+\frac {6 i d^3 \operatorname {PolyLog}\left (4,i e^{a+b x}\right )}{b^4} \]
2*(d*x+c)^3*arctan(exp(b*x+a))/b-3*I*d*(d*x+c)^2*polylog(2,-I*exp(b*x+a))/ b^2+3*I*d*(d*x+c)^2*polylog(2,I*exp(b*x+a))/b^2+6*I*d^2*(d*x+c)*polylog(3, -I*exp(b*x+a))/b^3-6*I*d^2*(d*x+c)*polylog(3,I*exp(b*x+a))/b^3-6*I*d^3*pol ylog(4,-I*exp(b*x+a))/b^4+6*I*d^3*polylog(4,I*exp(b*x+a))/b^4
Time = 0.20 (sec) , antiderivative size = 343, normalized size of antiderivative = 1.92 \[ \int (c+d x)^3 \text {sech}(a+b x) \, dx=\frac {i \left (-2 i b^3 c^3 \arctan \left (e^{a+b x}\right )+3 b^3 c^2 d x \log \left (1-i e^{a+b x}\right )+3 b^3 c d^2 x^2 \log \left (1-i e^{a+b x}\right )+b^3 d^3 x^3 \log \left (1-i e^{a+b x}\right )-3 b^3 c^2 d x \log \left (1+i e^{a+b x}\right )-3 b^3 c d^2 x^2 \log \left (1+i e^{a+b x}\right )-b^3 d^3 x^3 \log \left (1+i e^{a+b x}\right )-3 b^2 d (c+d x)^2 \operatorname {PolyLog}\left (2,-i e^{a+b x}\right )+3 b^2 d (c+d x)^2 \operatorname {PolyLog}\left (2,i e^{a+b x}\right )+6 b c d^2 \operatorname {PolyLog}\left (3,-i e^{a+b x}\right )+6 b d^3 x \operatorname {PolyLog}\left (3,-i e^{a+b x}\right )-6 b c d^2 \operatorname {PolyLog}\left (3,i e^{a+b x}\right )-6 b d^3 x \operatorname {PolyLog}\left (3,i e^{a+b x}\right )-6 d^3 \operatorname {PolyLog}\left (4,-i e^{a+b x}\right )+6 d^3 \operatorname {PolyLog}\left (4,i e^{a+b x}\right )\right )}{b^4} \]
(I*((-2*I)*b^3*c^3*ArcTan[E^(a + b*x)] + 3*b^3*c^2*d*x*Log[1 - I*E^(a + b* x)] + 3*b^3*c*d^2*x^2*Log[1 - I*E^(a + b*x)] + b^3*d^3*x^3*Log[1 - I*E^(a + b*x)] - 3*b^3*c^2*d*x*Log[1 + I*E^(a + b*x)] - 3*b^3*c*d^2*x^2*Log[1 + I *E^(a + b*x)] - b^3*d^3*x^3*Log[1 + I*E^(a + b*x)] - 3*b^2*d*(c + d*x)^2*P olyLog[2, (-I)*E^(a + b*x)] + 3*b^2*d*(c + d*x)^2*PolyLog[2, I*E^(a + b*x) ] + 6*b*c*d^2*PolyLog[3, (-I)*E^(a + b*x)] + 6*b*d^3*x*PolyLog[3, (-I)*E^( a + b*x)] - 6*b*c*d^2*PolyLog[3, I*E^(a + b*x)] - 6*b*d^3*x*PolyLog[3, I*E ^(a + b*x)] - 6*d^3*PolyLog[4, (-I)*E^(a + b*x)] + 6*d^3*PolyLog[4, I*E^(a + b*x)]))/b^4
Time = 0.71 (sec) , antiderivative size = 185, normalized size of antiderivative = 1.03, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.429, Rules used = {3042, 4668, 3011, 7163, 2720, 7143}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int (c+d x)^3 \text {sech}(a+b x) \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int (c+d x)^3 \csc \left (i a+i b x+\frac {\pi }{2}\right )dx\) |
\(\Big \downarrow \) 4668 |
\(\displaystyle -\frac {3 i d \int (c+d x)^2 \log \left (1-i e^{a+b x}\right )dx}{b}+\frac {3 i d \int (c+d x)^2 \log \left (1+i e^{a+b x}\right )dx}{b}+\frac {2 (c+d x)^3 \arctan \left (e^{a+b x}\right )}{b}\) |
\(\Big \downarrow \) 3011 |
\(\displaystyle \frac {3 i d \left (\frac {2 d \int (c+d x) \operatorname {PolyLog}\left (2,-i e^{a+b x}\right )dx}{b}-\frac {(c+d x)^2 \operatorname {PolyLog}\left (2,-i e^{a+b x}\right )}{b}\right )}{b}-\frac {3 i d \left (\frac {2 d \int (c+d x) \operatorname {PolyLog}\left (2,i e^{a+b x}\right )dx}{b}-\frac {(c+d x)^2 \operatorname {PolyLog}\left (2,i e^{a+b x}\right )}{b}\right )}{b}+\frac {2 (c+d x)^3 \arctan \left (e^{a+b x}\right )}{b}\) |
\(\Big \downarrow \) 7163 |
\(\displaystyle \frac {3 i d \left (\frac {2 d \left (\frac {(c+d x) \operatorname {PolyLog}\left (3,-i e^{a+b x}\right )}{b}-\frac {d \int \operatorname {PolyLog}\left (3,-i e^{a+b x}\right )dx}{b}\right )}{b}-\frac {(c+d x)^2 \operatorname {PolyLog}\left (2,-i e^{a+b x}\right )}{b}\right )}{b}-\frac {3 i d \left (\frac {2 d \left (\frac {(c+d x) \operatorname {PolyLog}\left (3,i e^{a+b x}\right )}{b}-\frac {d \int \operatorname {PolyLog}\left (3,i e^{a+b x}\right )dx}{b}\right )}{b}-\frac {(c+d x)^2 \operatorname {PolyLog}\left (2,i e^{a+b x}\right )}{b}\right )}{b}+\frac {2 (c+d x)^3 \arctan \left (e^{a+b x}\right )}{b}\) |
\(\Big \downarrow \) 2720 |
\(\displaystyle \frac {3 i d \left (\frac {2 d \left (\frac {(c+d x) \operatorname {PolyLog}\left (3,-i e^{a+b x}\right )}{b}-\frac {d \int e^{-a-b x} \operatorname {PolyLog}\left (3,-i e^{a+b x}\right )de^{a+b x}}{b^2}\right )}{b}-\frac {(c+d x)^2 \operatorname {PolyLog}\left (2,-i e^{a+b x}\right )}{b}\right )}{b}-\frac {3 i d \left (\frac {2 d \left (\frac {(c+d x) \operatorname {PolyLog}\left (3,i e^{a+b x}\right )}{b}-\frac {d \int e^{-a-b x} \operatorname {PolyLog}\left (3,i e^{a+b x}\right )de^{a+b x}}{b^2}\right )}{b}-\frac {(c+d x)^2 \operatorname {PolyLog}\left (2,i e^{a+b x}\right )}{b}\right )}{b}+\frac {2 (c+d x)^3 \arctan \left (e^{a+b x}\right )}{b}\) |
\(\Big \downarrow \) 7143 |
\(\displaystyle \frac {2 (c+d x)^3 \arctan \left (e^{a+b x}\right )}{b}+\frac {3 i d \left (\frac {2 d \left (\frac {(c+d x) \operatorname {PolyLog}\left (3,-i e^{a+b x}\right )}{b}-\frac {d \operatorname {PolyLog}\left (4,-i e^{a+b x}\right )}{b^2}\right )}{b}-\frac {(c+d x)^2 \operatorname {PolyLog}\left (2,-i e^{a+b x}\right )}{b}\right )}{b}-\frac {3 i d \left (\frac {2 d \left (\frac {(c+d x) \operatorname {PolyLog}\left (3,i e^{a+b x}\right )}{b}-\frac {d \operatorname {PolyLog}\left (4,i e^{a+b x}\right )}{b^2}\right )}{b}-\frac {(c+d x)^2 \operatorname {PolyLog}\left (2,i e^{a+b x}\right )}{b}\right )}{b}\) |
(2*(c + d*x)^3*ArcTan[E^(a + b*x)])/b + ((3*I)*d*(-(((c + d*x)^2*PolyLog[2 , (-I)*E^(a + b*x)])/b) + (2*d*(((c + d*x)*PolyLog[3, (-I)*E^(a + b*x)])/b - (d*PolyLog[4, (-I)*E^(a + b*x)])/b^2))/b))/b - ((3*I)*d*(-(((c + d*x)^2 *PolyLog[2, I*E^(a + b*x)])/b) + (2*d*(((c + d*x)*PolyLog[3, I*E^(a + b*x) ])/b - (d*PolyLog[4, I*E^(a + b*x)])/b^2))/b))/b
3.1.1.3.1 Defintions of rubi rules used
Int[u_, x_Symbol] :> With[{v = FunctionOfExponential[u, x]}, Simp[v/D[v, x] Subst[Int[FunctionOfExponentialFunction[u, x]/x, x], x, v], x]] /; Funct ionOfExponentialQ[u, x] && !MatchQ[u, (w_)*((a_.)*(v_)^(n_))^(m_) /; FreeQ [{a, m, n}, x] && IntegerQ[m*n]] && !MatchQ[u, E^((c_.)*((a_.) + (b_.)*x)) *(F_)[v_] /; FreeQ[{a, b, c}, x] && InverseFunctionQ[F[x]]]
Int[Log[1 + (e_.)*((F_)^((c_.)*((a_.) + (b_.)*(x_))))^(n_.)]*((f_.) + (g_.) *(x_))^(m_.), x_Symbol] :> Simp[(-(f + g*x)^m)*(PolyLog[2, (-e)*(F^(c*(a + b*x)))^n]/(b*c*n*Log[F])), x] + Simp[g*(m/(b*c*n*Log[F])) Int[(f + g*x)^( m - 1)*PolyLog[2, (-e)*(F^(c*(a + b*x)))^n], x], x] /; FreeQ[{F, a, b, c, e , f, g, n}, x] && GtQ[m, 0]
Int[csc[(e_.) + Pi*(k_.) + (Complex[0, fz_])*(f_.)*(x_)]*((c_.) + (d_.)*(x_ ))^(m_.), x_Symbol] :> Simp[-2*(c + d*x)^m*(ArcTanh[E^((-I)*e + f*fz*x)/E^( I*k*Pi)]/(f*fz*I)), x] + (-Simp[d*(m/(f*fz*I)) Int[(c + d*x)^(m - 1)*Log[ 1 - E^((-I)*e + f*fz*x)/E^(I*k*Pi)], x], x] + Simp[d*(m/(f*fz*I)) Int[(c + d*x)^(m - 1)*Log[1 + E^((-I)*e + f*fz*x)/E^(I*k*Pi)], x], x]) /; FreeQ[{c , d, e, f, fz}, x] && IntegerQ[2*k] && IGtQ[m, 0]
Int[PolyLog[n_, (c_.)*((a_.) + (b_.)*(x_))^(p_.)]/((d_.) + (e_.)*(x_)), x_S ymbol] :> Simp[PolyLog[n + 1, c*(a + b*x)^p]/(e*p), x] /; FreeQ[{a, b, c, d , e, n, p}, x] && EqQ[b*d, a*e]
Int[((e_.) + (f_.)*(x_))^(m_.)*PolyLog[n_, (d_.)*((F_)^((c_.)*((a_.) + (b_. )*(x_))))^(p_.)], x_Symbol] :> Simp[(e + f*x)^m*(PolyLog[n + 1, d*(F^(c*(a + b*x)))^p]/(b*c*p*Log[F])), x] - Simp[f*(m/(b*c*p*Log[F])) Int[(e + f*x) ^(m - 1)*PolyLog[n + 1, d*(F^(c*(a + b*x)))^p], x], x] /; FreeQ[{F, a, b, c , d, e, f, n, p}, x] && GtQ[m, 0]
\[\int \left (d x +c \right )^{3} \operatorname {sech}\left (b x +a \right )d x\]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 497 vs. \(2 (146) = 292\).
Time = 0.27 (sec) , antiderivative size = 497, normalized size of antiderivative = 2.78 \[ \int (c+d x)^3 \text {sech}(a+b x) \, dx=\frac {6 i \, d^{3} {\rm polylog}\left (4, i \, \cosh \left (b x + a\right ) + i \, \sinh \left (b x + a\right )\right ) - 6 i \, d^{3} {\rm polylog}\left (4, -i \, \cosh \left (b x + a\right ) - i \, \sinh \left (b x + a\right )\right ) - 3 \, {\left (-i \, b^{2} d^{3} x^{2} - 2 i \, b^{2} c d^{2} x - i \, b^{2} c^{2} d\right )} {\rm Li}_2\left (i \, \cosh \left (b x + a\right ) + i \, \sinh \left (b x + a\right )\right ) - 3 \, {\left (i \, b^{2} d^{3} x^{2} + 2 i \, b^{2} c d^{2} x + i \, b^{2} c^{2} d\right )} {\rm Li}_2\left (-i \, \cosh \left (b x + a\right ) - i \, \sinh \left (b x + a\right )\right ) + {\left (i \, b^{3} c^{3} - 3 i \, a b^{2} c^{2} d + 3 i \, a^{2} b c d^{2} - i \, a^{3} d^{3}\right )} \log \left (\cosh \left (b x + a\right ) + \sinh \left (b x + a\right ) + i\right ) + {\left (-i \, b^{3} c^{3} + 3 i \, a b^{2} c^{2} d - 3 i \, a^{2} b c d^{2} + i \, a^{3} d^{3}\right )} \log \left (\cosh \left (b x + a\right ) + \sinh \left (b x + a\right ) - i\right ) + {\left (-i \, b^{3} d^{3} x^{3} - 3 i \, b^{3} c d^{2} x^{2} - 3 i \, b^{3} c^{2} d x - 3 i \, a b^{2} c^{2} d + 3 i \, a^{2} b c d^{2} - i \, a^{3} d^{3}\right )} \log \left (i \, \cosh \left (b x + a\right ) + i \, \sinh \left (b x + a\right ) + 1\right ) + {\left (i \, b^{3} d^{3} x^{3} + 3 i \, b^{3} c d^{2} x^{2} + 3 i \, b^{3} c^{2} d x + 3 i \, a b^{2} c^{2} d - 3 i \, a^{2} b c d^{2} + i \, a^{3} d^{3}\right )} \log \left (-i \, \cosh \left (b x + a\right ) - i \, \sinh \left (b x + a\right ) + 1\right ) - 6 \, {\left (i \, b d^{3} x + i \, b c d^{2}\right )} {\rm polylog}\left (3, i \, \cosh \left (b x + a\right ) + i \, \sinh \left (b x + a\right )\right ) - 6 \, {\left (-i \, b d^{3} x - i \, b c d^{2}\right )} {\rm polylog}\left (3, -i \, \cosh \left (b x + a\right ) - i \, \sinh \left (b x + a\right )\right )}{b^{4}} \]
(6*I*d^3*polylog(4, I*cosh(b*x + a) + I*sinh(b*x + a)) - 6*I*d^3*polylog(4 , -I*cosh(b*x + a) - I*sinh(b*x + a)) - 3*(-I*b^2*d^3*x^2 - 2*I*b^2*c*d^2* x - I*b^2*c^2*d)*dilog(I*cosh(b*x + a) + I*sinh(b*x + a)) - 3*(I*b^2*d^3*x ^2 + 2*I*b^2*c*d^2*x + I*b^2*c^2*d)*dilog(-I*cosh(b*x + a) - I*sinh(b*x + a)) + (I*b^3*c^3 - 3*I*a*b^2*c^2*d + 3*I*a^2*b*c*d^2 - I*a^3*d^3)*log(cosh (b*x + a) + sinh(b*x + a) + I) + (-I*b^3*c^3 + 3*I*a*b^2*c^2*d - 3*I*a^2*b *c*d^2 + I*a^3*d^3)*log(cosh(b*x + a) + sinh(b*x + a) - I) + (-I*b^3*d^3*x ^3 - 3*I*b^3*c*d^2*x^2 - 3*I*b^3*c^2*d*x - 3*I*a*b^2*c^2*d + 3*I*a^2*b*c*d ^2 - I*a^3*d^3)*log(I*cosh(b*x + a) + I*sinh(b*x + a) + 1) + (I*b^3*d^3*x^ 3 + 3*I*b^3*c*d^2*x^2 + 3*I*b^3*c^2*d*x + 3*I*a*b^2*c^2*d - 3*I*a^2*b*c*d^ 2 + I*a^3*d^3)*log(-I*cosh(b*x + a) - I*sinh(b*x + a) + 1) - 6*(I*b*d^3*x + I*b*c*d^2)*polylog(3, I*cosh(b*x + a) + I*sinh(b*x + a)) - 6*(-I*b*d^3*x - I*b*c*d^2)*polylog(3, -I*cosh(b*x + a) - I*sinh(b*x + a)))/b^4
\[ \int (c+d x)^3 \text {sech}(a+b x) \, dx=\int \left (c + d x\right )^{3} \operatorname {sech}{\left (a + b x \right )}\, dx \]
\[ \int (c+d x)^3 \text {sech}(a+b x) \, dx=\int { {\left (d x + c\right )}^{3} \operatorname {sech}\left (b x + a\right ) \,d x } \]
-2*c^3*arctan(e^(-b*x - a))/b + 2*integrate((d^3*x^3*e^a + 3*c*d^2*x^2*e^a + 3*c^2*d*x*e^a)*e^(b*x)/(e^(2*b*x + 2*a) + 1), x)
\[ \int (c+d x)^3 \text {sech}(a+b x) \, dx=\int { {\left (d x + c\right )}^{3} \operatorname {sech}\left (b x + a\right ) \,d x } \]
Timed out. \[ \int (c+d x)^3 \text {sech}(a+b x) \, dx=\int \frac {{\left (c+d\,x\right )}^3}{\mathrm {cosh}\left (a+b\,x\right )} \,d x \]